package com.zzyl.mapper;

import com.github.pagehelper.Page;
import com.zzyl.entity.NursingProject;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

/**
 * @Description NursingProjectMapper
 * @Author liangDong
 * @Date 2025-05-07  21:06
 */
@Mapper
public interface NursingProjectMapper {
    Page<NursingProject> selectByPage(String name, Integer status);

    void insert(NursingProject nursingProject);

    @Select("select * from nursing_project where id = #{id}")
    NursingProject select(Long id);

    void update(NursingProject nursingProject);
    @Delete("delete from nursing_project where id = #{id}")
    void delete(Long id);

    @Select("select * from nursing_project")
    List<NursingProject> selectAll();

    List<Map<String, Object>> getCountList();
}
